package com.kedacom.freedomLabel.label;

import com.gprinter.command.LabelCommand;
import com.kedacom.freedomLabel.label.annotation.FontScale;

/**
 * @author licheng
 * @since 2019/11/28 18:53
 */
public final class GpLabelConverts {

    public static com.gprinter.command.LabelCommand.FONTMUL getLabelFountMul(@FontScale int scale) {
        LabelCommand.FONTMUL fontScale;
        switch (scale) {
            case FontScale.SCALE_1:
            default:
                fontScale = LabelCommand.FONTMUL.MUL_1;
                break;
            case FontScale.SCALE_2:
                fontScale = LabelCommand.FONTMUL.MUL_2;
                break;
            case FontScale.SCALE_3:
                fontScale = LabelCommand.FONTMUL.MUL_3;
                break;
        }
        return fontScale;
    }
}